package com.pybox.repository;

import com.pybox.dto.TWeekTimeDto;
import com.pybox.entity.TWeekTime;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
* 描述：TWeekTime Repository
* @author wuyingkai
* @date 2018-09-15
*/

@Repository
public interface TWeekTimeRepository extends JpaRepository<TWeekTime, Integer>, JpaSpecificationExecutor<TWeekTime>   {


     List<TWeekTime> findAllByGroupId(Integer groupId);

     @Modifying
     Integer deleteByGroupId(Integer groupId);

}